package game.assist.diablo3.data.service;

import game.assist.diablo3.data.dao.impl.RoleTypeDaoImpl;
import game.assist.diablo3.data.vo.RoleType;
import game.assist.diablo3.db.DiabloDatabaseHelper;

import java.sql.SQLException;
import java.util.ArrayList;

import com.j256.ormlite.android.apptools.OrmLiteBaseActivity;

public class RoleTypeService {
	private OrmLiteBaseActivity<DiabloDatabaseHelper> ormLiteBaseActivity;

	public RoleTypeService(OrmLiteBaseActivity<DiabloDatabaseHelper> ormLiteBaseActivity) {
		super();
		this.ormLiteBaseActivity = ormLiteBaseActivity;
	}

	public ArrayList<RoleType> getAllRoleType() throws SQLException {
		return new RoleTypeDaoImpl(ormLiteBaseActivity).queryAllRoleType();
	}
	
	public RoleType getRoleTypeById(int roleId) throws SQLException {
		return new RoleTypeDaoImpl(ormLiteBaseActivity).getRoleTypeById(roleId);
	}
}
